package com.miaxis.livedetection;

import android.app.Application;

import com.miaxis.livedetection.test.BuildConfig;

import org.jetbrains.annotations.NotNull;

import timber.log.Timber;


/**
 * 最先被系统初始化
 *
 * @date: 2018/12/12 15:40
 * @author: zhang.yw
 * @project: LiveDetectionDome
 */
public class CustomApp extends Application {
    @Override
    public void onCreate() {
        super.onCreate();
        if (BuildConfig.DEBUG) {
            Timber.plant(new Timber.DebugTree() {
                @Override
                protected void log(int priority, String tag, @NotNull String message, Throwable t) {
                    super.log(priority, "MX-" + tag, message, t);
                }
            });
            Timber.e("build %s", android.os.Build.MODEL);
        }
    }

}
